﻿using Abp.BackgroundJobs;
using Abp.Dependency;
using System.Threading.Tasks;

namespace Mt.Site.Core.AccessStatistics.BackgroundJob
{
    public class AccessStatisticsJob : AsyncBackgroundJob<VisitorArgs>, ITransientDependency
    {
        public readonly IDataProcessor _aSBackgroundJobHelper;
        public AccessStatisticsJob(
                IDataProcessor aSBackgroundJobHelper)
        {
            _aSBackgroundJobHelper = aSBackgroundJobHelper;
        }

        public override async Task ExecuteAsync(VisitorArgs args)
        {
            await _aSBackgroundJobHelper.Process(args);
        }
    }
}
